<?php

/**
 * @name: HOTN AnimeList
 * @author: HammerOnTheNail
 * @link: http://code.google.com/p/hotnanimelist/
 */

$eplug_admin = TRUE;
include("../../../../class2.php"); 
//include(e_ADMIN."auth.php");
include(e_PLUGIN."hotn_animelist/Class/animelist_mysql.php");
include(e_PLUGIN."hotn_animelist/Class/animelist_options.php");

// Admin jog vizsgálata
if(!getperms("P"))
{ 
	header("location:".e_BASE."index.php"); 
}

if ($_POST['action'] == "delete")
{
	$action = ".delete";
	
	$arg = "`error_id` = '".implode($_POST['error'],"' or `error_id` = '")."'";
	
	if ($sql->db_Delete("hotn_animelist_error",$arg) === 0)
	{
		$action = ".no_select";
	}
}

// Visza irányítás és állapot továbbítása
header("Location: ".e_PLUGIN."hotn_animelist/Admin/admin_index.php?error.list".$action);
?>